package cn.com.taurus.impl;

import cn.com.taurus.entity.FundCompany;
import cn.com.taurus.mapper.FundCompanyMapper;
import cn.com.taurus.service.FundCompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zjw
 * @createTime 2021-6-3 20:49:18
 * @remark 基金公司Impl层
 * @version 1.0
 */
@Service
public class FundCompanyImpl implements FundCompanyService {
    @Autowired
    FundCompanyMapper fundCompanyMapper;

    @Override
    public int addFundCompany(List<FundCompany> fundCompanyData) {
        return fundCompanyMapper.addFundCompany(fundCompanyData);
    }

    @Override
    public List<FundCompany> selectAllFundCompany() {
        return fundCompanyMapper.selectAllFundCompany();
    }

    @Override
    public int addCompany(FundCompany fundCompany){
        return fundCompanyMapper.addCompany(fundCompany);
    }

    @Override
    public int updateFundCompany(FundCompany fundCompany){
        return fundCompanyMapper.updateFundCompany(fundCompany);
    }

    @Override
    public FundCompany fundCompanyByFcName(FundCompany fundCompany) {
        return fundCompanyMapper.fundCompanyByFcName(fundCompany);
    }

    @Override
    public FundCompany query(String fcid){
        return fundCompanyMapper.query(fcid);
    }

    @Override
    public List<FundCompany> fundCompanyTopByDesc() {
        return fundCompanyMapper.fundCompanyTopByDesc();
    }

    @Override
    public List<FundCompany> conditionSelect(String fcId, String fcName,String fStartTime ,String starFm){
        return fundCompanyMapper.conditionSelect(fcId,fcName,fStartTime,starFm);
    }
}
